package com.cpdmali.courrier.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.stereotype.Component;

import com.cpdmali.courrier.service.DomainsService;

@Component
public class ServiceManager {
	
	private static ServiceManager serviceManager;
	
	public ServiceManager(){
	
	}
	public final static ServiceManager getInstance(){
		if(ServiceManager.serviceManager==null){
			ServiceManager.serviceManager = new ServiceManager(); 
		}
		return ServiceManager.serviceManager;
	}
	
	@Autowired
	private DomainsService domainsService;
	
	public DomainsService getDomainsService(){
		return domainsService;
	}
	
	
}
